package com.easy.dn.ui.main.activity;

import android.os.Bundle;
import android.support.v4.content.ContextCompat;

import com.easy.common.commonwidget.StatusBarCompat;
import com.hyphenate.easeui.ui.EaseBaseActivity;
import com.hyphenate.easeui.ui.EaseChatFragment;

import dn.easy.com.easyto.R;

public class ChatActivity extends EaseBaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        StatusBarCompat.setStatusBarColor(this, ContextCompat.getColor(this, R.color.main_color));
        setContentView(R.layout.activity_chat);
        //可以直接new EaseChatFratFragment使用

        EaseChatFragment chatFragment = new EaseChatFragment();
        chatFragment.setArguments(getIntent().getExtras());
        getSupportFragmentManager().beginTransaction().add(R.id.container, chatFragment).commit();
    }
}
